
import { extendRequest } from '@/utils/request';

export async function queryPageList(params) {
  return extendRequest('/task/list2', {
    method: 'POST',
    data: params,
  });
}
export async function queryPageListPlain(params) {
  return extendRequest('/task/list', {
    method: 'POST',
    data: params,
  });
}
export async function updateTask(params) {
  return extendRequest('/task/update', {
    method: 'POST',
    data: params,
  });
}
export async function taskDetail(params) {
  return extendRequest('/task/detail', {
    method: 'POST',
    data: params,
  });
}
export async function taskAdd(params) {

  return extendRequest('/task/add', {
    method: 'POST',
    data: params,
  });
  // console.log('extendRequest====',extendRequest);
}
export async function queryDeptList(params) {
  return extendRequest('/source/group/list', {
    method: 'POST',
    data: params,
  });
}
export async function querySysmemberList(params) {
  return extendRequest('/sysmember/list', {
    method: 'POST',
    data: params,
  });
}
export async function queryTagList(params) {
  return extendRequest('/tasktag/list', {
    method: 'POST',
    data: params,
  });
}
export async function queryCarDetail(params) {
  return extendRequest('/car/list', {
    method: 'POST',
    data: params,
  });
}
export async function removeTest(params) {
  return extendRequest('/task/delete', {
    method: 'POST',
    data: {
      ...params,

    },
  });
}
